"Torsion XML, XSLT example" by Andreas Kirsch, 3.12.2006

Files included in this zip:

The first 7 files are part of mktree (copyright goes to http://www.javascripttoolbox.com/ ) which is the free DHTML library which I use to create the dynamic tree structure:

bullet.gif
DHTML Expandable and Collapsible Tree from JavascriptToolbox_com.mht
Documentation.html
minus.gif
mktree.css
mktree.js_x
plus.gif

The following files make up the actual example package:

Marble Tactics.torsion.exports.xml	- Torsion exports created from the "Marble Tactics" TGB demo
Marble Tactics.torsion.exports.XSLT.xml	- same file as above but with tag to open the table xslt
TorsionExports_MkTree.html		- generated html that uses mktree to display a reference
TorsionExports_MkTree.xslt		- xslt source that specifies the transformation
TorsionExports_MkTreeTOC.html		- a table of contents (same as mktree but it contains top-level nodes only)
TorsionExports_MkTreeTOC.xslt		- again the xslt source that generates the html
TorsionExports_Table.html		- a comprehensive reference that contains all information in human-readable table form
TorsionExports_Table.xslt		- the corresponding XSLT file

create htmls.bat			- batch file that uses msxsl to generate the html files from the XML and the specific XSLT files
readme.txt				- this readme

If your web browser supports it (IE for example) you can try to open Marble Tactics.torsion.exports.xml and Marble Tactics.torsion.exports.XSLT.xml to see the difference an XSLT tag can add to the readablity of an XML file.

NOTE:
Currently mktree is disabled, since it's awfully slow sometimes and you don't really need it to see how XSLT works. In case you want to see it in action nevertheless, simply rename mktree.js_x to mktree.js and start on of the mktree example htmls (either _MkTree or _MkTreeTOC).
Be warned, however, that it takes it a long time to preprocess the data and that it will react slowly in general since I haven't found time nor do I know enough about DHTML to have been able to optimize it.

Have fun.
Andreas "Black(HC)" Kirsch


